import Vue from 'vue'
import Hljs from 'highlight.js'
// import 'highlight.js/styles/googlecode.css'
// import 'highlight.js/styles/a11y-light.css';
let Highlight = {}
Highlight.install = function () {
    Vue.directive('highlight', function (el) {
        let blocks = el.querySelectorAll('pre code');
        blocks.forEach((block) => {
            Hljs.highlightBlock(block)
        })
    })
}
export default Highlight;
